package com.ruoyi.asms.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 维护方用户负责信息对象 asms_maintenance_charge_info
 * 
 * @author yfkj
 * @date 2021-10-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AsmsMaintenanceChargeInfo
{
    private static final long serialVersionUID = 1L;
    /** 维护方用户负责信息主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long maintenanceChargeInfoId;
    /** 用户主键 */
    @Excel(name = "用户主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "用户主键")
    private Long userId;
    /** 我负责管理的设备所有方 */
    @Excel(name = "我负责管理的设备所有方")
    @TableField(exist = true)
    @ApiModelProperty(value =  "我负责管理的设备所有方")
    private String maintenanceChargeDeptIds;
    /** 负责的区域信息 */
    @Excel(name = "负责的区域信息")
    @TableField(exist = true)
    @ApiModelProperty(value =  "负责的区域信息")
    private String maintenanceChargeAddressIds;
    /** 负责的设备信息(设备类型外键列表) */
    @Excel(name = "负责的设备信息(设备类型外键列表)")
    @TableField(exist = true)
    @ApiModelProperty(value =  "负责的设备信息(设备类型外键列表)")
    private String chargeAssetTypes;
    @TableField(exist = true)
    private Long maintenanceDeptId;
    @TableField(exist = true)
    private Integer type;
    @TableField(exist = true)
    private Integer weight;
    public static final String MAINTENANCE_CHARGE_INFO_ID="maintenance_charge_info_id";
    public static final String USER_ID="user_id";
    public static final String MAINTENANCE_CHARGE_DEPT_IDS="maintenance_charge_dept_ids";
    public static final String MAINTENANCE_CHARGE_ADDRESS_IDS="maintenance_charge_address_ids";
    public static final String CHARGE_ASSET_TYPES="charge_asset_types";
    public static final String MAINTENANCE_DEPT_ID="maintenance_dept_id";
    public static final String WEIGHT="weight";
    public static final String TYPE="type";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("maintenanceChargeInfoId", getMaintenanceChargeInfoId())
            .append("userId", getUserId())
            .append("maintenanceChargeDeptIds", getMaintenanceChargeDeptIds())
            .append("maintenanceChargeAddressIds", getMaintenanceChargeAddressIds())
            .append("chargeAssetTypes", getChargeAssetTypes())
            .toString();
    }
}
